package cn.htsyb.synergy.tester.frame;

import cn.htsyb.synergy.tester.exception.AssertException;

public class AssertFrame {


    public static void assertTrue(String message, boolean condition) throws AssertException {
        if (!condition) {
            fail(message);
        }
    }

    public static void fail(String message) throws AssertException {
        if (message == null) {
            throw new AssertException();
        }
        throw new AssertException(message);
    }

}